; Ken.Kuang for SharkL5 Debug information
; 2017
; Version @ 0000
ASSERT SOFTWARE.BUILD.BASE()>=57080. "The Trace32 software too old"

;cp_pub_address
;0x02000000
;cp_wtl_address
;0x32000000
;ap_address
;0x32000000
;aon_address
;0x32000000

;share IRAM
;0x00010000
ENTRY &MEM_TYPE="EAXI" &AON_SIRAM_ADDR=0x00010000 &AON_BASE_ADDR=0x32000000 &DMC_BASE_ADDR=0x31000000
ASSERT DATA.LONG(AVM:0x0)==0x5577 "Please use Per_Preload.cmm!"

CONFIG 16. 8.
WIDTH 23.

; ############################ START OF DJTAG ############################
BASE EAPB:0x0

TREE "DJTAG Scan"

TREE "DEBUG SIGNAL"

	include SharkL5_DJTAG_Signal_List.per

TREE.END


TREE "VOLTAGE DOMAIN STATUS"
TEXTLINE "if TAPID == 0x2381C5FF, It's On, else is Off"
SGROUP "AP Voltage Domain"
	VARX 0x04 %l DJTAG.SWITCH(0x01)
	VARX 0x00 %l DJTAG.EXECUTE(0x00000180,0)
	LINE.LONG 0x00 " TAPID , TAPID(Chan01) "
SGROUP "APCPU Voltage Domain"
	VARX 0x00 %l DJTAG.EXECUTE(0x01000180,0)
	LINE.LONG 0x00 " TAPID , TAPID(Chan01) "
SGROUP "GPU Voltage Domain"
	VARX 0x00 %l DJTAG.EXECUTE(0x02000180,0)
	LINE.LONG 0x00 " TAPID , TAPID(Chan01) "
SGROUP "MM Voltage Domain"
	VARX 0x00 %l DJTAG.EXECUTE(0x03000180,0)
	LINE.LONG 0x00 " TAPID , TAPID(Chan01) "
SGROUP "PUBCP Voltage Domain"
	VARX 0x00 %l DJTAG.EXECUTE(0x04000180,0)
	LINE.LONG 0x00 " TAPID , TAPID(Chan01) "
SGROUP "WTLCP Voltage Domain"
	VARX 0x00 %l DJTAG.EXECUTE(0x05000180,0)
	LINE.LONG 0x00 " TAPID , TAPID(Chan01) "
SGROUP "AUDCP Voltage Domain"
	VARX 0x00 %l DJTAG.EXECUTE(0x06000180,0)
	LINE.LONG 0x00 " TAPID , TAPID(Chan01) "
SGROUP "PUB Voltage Domain"
	VARX 0x00 %l DJTAG.EXECUTE(0x07000180,0)
	LINE.LONG 0x00 " TAPID , TAPID(Chan01) "
SGROUP "AON Voltage Domain"
	VARX 0x00 %l DJTAG.EXECUTE(0x08000180,0)
	LINE.LONG 0x00 " TAPID , TAPID(Chan01) "
TREE.END


TREE.END
; ############################ END OF DJTAG ############################

include SharkL5_A55A75.per


;CONFIG 16. 8.
WIDTH 23.

TREE "DDR"
BASE &MEM_TYPE:(&AON_BASE_ADDR+0x007E0000)
RGROUP.LONG 0x250++0x03 "PMU"
TEXTLINE ""
LINE.LONG 0x00 " PUB_ACC_RDY , PUB_ACC_RDY "
BITFLD.LONG 0x00 0.      " RDY , PUB_ACC_RDY "
RGROUP.LONG 0x254++0x03
TEXTLINE ""
LINE.LONG 0x00 " PUB_CLK_RDY , PUB_CLK_RDY "
BITFLD.LONG 0x00 0.      " RDY , PUB_CLK_RDY "


;BASE &MEM_TYPE:(&AON_BASE_ADDR+0x007D0000)
;RGROUP.LONG 0xA0++0x03 "DFS"
;TEXTLINE ""
;LINE.LONG 0x00 " SOFT_DFS_CTRL , SOFT_DFS_CTRL "

;RGROUP.LONG 0xA4++0x03
;TEXTLINE ""
;LINE.LONG 0x00 " HARD_DFS_CTRL_LO , HARD_DFS_CTRL_LO "

;RGROUP.LONG 0xA8++0x03
;TEXTLINE ""
;LINE.LONG 0x00 " HARD_DFS_CTRL_HI , HARD_DFS_CTRL_HI "


;BASE &MEM_TYPE:(&DMC_BASE_ADDR)
;include DMC.per

TREE.END



;CONFIG 16. 8.
WIDTH 23.

; ############################ START OF PMU ############################
BASE &MEM_TYPE:(&AON_BASE_ADDR+0x007E0000)

include SoC_PMU.per

; ############################ END OF PMU ############################

; ############################ START OF PMU ############################

TREE "DVFS Info"

BASE &MEM_TYPE:(0x8322A8000)
include SoC_APCPU_DVFS.per

BASE &MEM_TYPE:(0x71700000)
include SoC_AP_DVFS.per

BASE &MEM_TYPE:(0x8322A0000)
include SoC_TOP_DVFS.per

BASE &MEM_TYPE:(0x832100000)
include SoC_ADI_CHANNEL.per

BASE &MEM_TYPE:(0x832060000)
include SoC_I2C_CHANNEL.per

TREE.END

; ############################ END OF PMU ############################

;CONFIG 16. 8.
WIDTH 23.


;include PMIC.per

;CONFIG 16. 8.
WIDTH 23.

